package com.fz.action;

import lombok.Data;

/**
 * Created by webrx on 2017-09-13.
 */
@Data
public class LoginAction {
    private String uname;
    private String upass;
    public String execute(){
        String result = "success";
        if(!"admin".endsWith(uname) || !"123".equals(upass)){
            result = "fail";
        }
        return result;
    }
}
